package com.base.system.jpa.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "user_menu")
@org.hibernate.annotations.Table(appliesTo = "user_menu", comment = "用户菜单表")
@Data
@Accessors(chain = true)
public class JpaUserMenu implements Serializable {
    private static final long serialVersionUID = 6103546701843401998L;
    @Id
    @Column(name = "id", columnDefinition = "bigint COMMENT '主键，自动生成'")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(nullable = true)
    private Long userId;
    
    @Column(nullable = true)
    private Long menuId;
}
